package com.qzw.study.xml;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * @author 屈子威
 * @date 2020/9/16 3:56
 * @description
 */
@Component
public class User {

	@Autowired
	private UserDao dao;

	public User(){
		System.out.println("invoke user constructor......");
	}

	@Override
	public String toString() {
		return "user toString method......";
	}

	public UserDao getDao() {
		return dao;
	}

	public void setDao(UserDao dao) {
		this.dao = dao;
	}
}
